package cn.wolfcode.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.HashMap;

/**
 * 字典目录表
 */
@Setter
@Getter
@ToString
public class SystemDictionary {
    /**
     * 主键
     */
    private Long id;
    /**
     * 编码
     */
    private String sn;
    /**
     * 标题
     */
    private String title;
    /**
     * 简介
     */
    private String intro;

    public String getJson() {
        HashMap map = new HashMap(4);
        map.put("id", id);
        map.put("sn", sn);
        map.put("title", title);
        map.put("intro", intro);
        return JSON.toJSONString(map);
    }

}